﻿using AutoTest.Business.Dto.Product;
using AutoTest.Business.Vo.Product;
using AutoTest.Framework.Ioc;

namespace AutoTest.Business.IServices
{
    /// <summary>
    /// 产品服务
    /// </summary>
    public interface IProductService : IScoped
    {
        #region 商品管理
        /// <summary>
        /// 添加商品
        /// </summary>
        /// <param name="addDto"></param>
        /// <returns></returns>
        Task<ProductDetailVo> AddProductAsync(ProductAddDto addDto);
        /// <summary>
        /// 编辑商品
        /// </summary>
        /// <param name="editDto"></param>
        /// <returns></returns>
        Task<ProductDetailVo> EditProductAsync(ProductEditDto editDto);
        #endregion
        /// <summary>
        /// 查询列表
        /// </summary>
        /// <param name="searchDto"></param>
        /// <returns></returns>
        Task<List<ProductListVo>> SearchProductListAsync(ProductListSearchDto searchDto);
    }
}
